import request from '@/utils/request'

export function list(token, data){
  return request({
    url: 'cms/question/get_select',
    method: 'post',
    params: {token},
    data
  })
}

export function add(token,data){
  return request({
    url: 'cms/question/add',
    method: 'post',
    params: {token},
    data
  })
}

export function del(token,question_id) {
  return request({
    url: 'cms/question/delete',
    method: 'post',
    params: {token},
    data: {question_id}

  })

}

export function edit(token, data){
  return request({
    url: 'cms/question/edit',
    method: 'post',
    params: {token},
    data
  })
}
